[Programming Problem] Boundary of Binary Tree

Given a binary tree, return the values of its boundary in anti-clockwise direction starting from root. Boundary includes left boundary, leaves, and right boundary in order without duplicate nodes. (The values of the nodes may still be duplicates.) Left boundary is defined as the path from root to the left-most node. Right boundary is defined … Continue reading [Programming Problem] Boundary of Binary Tree